import { createBrowserRouter, RouterProvider } from "react-router-dom";
import { routers } from "./router";
import { echaresContext } from "./context/index";
import * as echarts from "echarts";

const routersConfig = createBrowserRouter(routers);

function App() {
  return (
    <>
      <echaresContext.Provider value={echarts}>
        <RouterProvider router={routersConfig} />;
      </echaresContext.Provider>
    </>
  );
}

export default App;
